]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Mark chrome container as NO_LAYOUT
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 10 Aug 2018 19:37:48 +0000 (21:37 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 14 Aug 2018 17:13:30 +0000 (19:13 +0200)
Showing and hiding children does not affect the allocation of the uiGroup
nor its other children. We can avoid full relayout/redraw in those
situations.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/197

js/ui/layout.js

index 210fb667a020e4c38ce7d4b5f62670ed699cea3d..7a3cb227d51316d1e9973e9c0cb43f06c7021760 100644 (file)
@@ -204,6 +204,7 @@ var LayoutManager = new Lang.Class({
 
         // Set up stage hierarchy to group all UI actors under one container.
         this.uiGroup = new Shell.GenericContainer({ name: 'uiGroup' });
+        this.uiGroup.set_flags(Clutter.ActorFlags.NO_LAYOUT);
         this.uiGroup.connect('allocate', (actor, box, flags) => {
             let children = actor.get_children();
             for (let i = 0; i < children.length; i++)